<template>
   <div>
      <!-- <addition ref="refresh"/>
      <p>-------------------------</p>
      <subtraction @refrshlist="handlerefresh"/> -->
      <h2>我是父组件</h2>
      <p>-------------------------</p>
      <child1 ref="childContainer"/>
      <p>-------------------------</p>
      <child2 @save = "save1"/>
   </div>
</template>

<script>
import addition from '../addition.vue'
import subtraction from '../subtraction.vue'
import child1  from '../brothercomponents/child1.vue'
import child2  from '../brothercomponents/child2.vue'
export default {
   components:{
      addition,
      subtraction,
      child1,
      child2
   },
   methods: {
      save1(){
         this.$refs.childContainer.aaa()
      }
   },
}
</script>

<style>

</style>